Show AllShow All

DATE

See Also

Returns the sequential serial number that represents a particular date. If the cell format was General before the function was entered, the result is formatted as a date.

Syntax

DATE(year,month,day)

Year    The year argument can be one to four digits. Microsoft Excel interprets the year argument according to the date system you are using. By default, Excel for Windows uses the 1900 date system; Excel for the Macintosh uses the 1904 date system.

ShowFor the 1900 date system

ShowFor the 1904 date system

Month    is a number representing the month of the year. If month is greater than 12, month adds that number of months to the first month in the year specified. For example, DATE(2008,14,2) returns the serial number representing February 2, 2009.

Day    is a number representing the day of the month. If day is greater than the number of days in the month specified, day adds that number of days to the first day in the month. For example, DATE(2008,1,35) returns the serial number representing February 4, 2008.

Remarks

Example

The example may be easier to understand if you copy it to a blank worksheet.

ShowHow?

 
1
2
A B C
Year Month Day
2008 1 1
Formula Description (Result)
=DATE(A2,B2,C2) Serial date for the date above, using the 1900 date system (1/1/2008 or 39448)

Note  To view the number as a serial number, select the cell and click Cells on the Format menu. Click the Number tab, and then click General in the Category box.